#ifndef __HSM30_H
#define __HSM30_H

#include <types.h>

#define HSM_CALLING_STATE               'A'
#define HSM_PHONEBOOK_RESPONSE          'B'
#define HSM_CALLER_DISPLAY              'C'
#define HSM_DIALING_STATE               'D'
#define HSM_ERROR_CODE_RESPONSE         'E'
#define HSM_VOICE_DIALING               'F'
#define HSM_HANG_UP                     'H'
#define HSM_VERSION_INFO                'I'
#define HSM_MOBILE_INFO                 'J'
#define HSM_NEW_MESSAGE                 'N'
#define HSM_MIC_STATE                   'O'
#define HSM_PAIRING_STATE               'P'
#define HSM_QUERY_DEVICE_NAME           'Q'
#define HSM_PHONE_ROCKING               'R'
#define HSM_PHONE_STATUS                'S'
#define HSM_AUDIO_CONNECT_STATUS        'U'
#define HSM_CALL_WAITING_STATE          'W'
#define HSM_PAIRED_PHONE_CONF_STATE     'Y'
#define HSM_IPOD_RESPONSE_DATA          'L'
#define HSM_STEREO_CONNECT_STATUS       'X'
#define HSM_SMS_RESPONSE                'G'

#define HOST_ACCEPT_CALL                'a'
#define HOST_QUERY_CONF_PHONEBOOK       'b'
#define HOST_CONN_DISCONN_PHONE         'c'
#define HOST_DIALING                    'd'
#define HOST_DELETE_PAIRED_DEVICE       'e'
#define HOST_FAST_DIALING               'f'
#define HOST_HANG_UP                    'h'
#define HOST_VERSION_INFO               'i'
#define HOST_DEVICE_CONTROL             'j'
#define HOST_SEND_KEY                   'k'
#define HOST_ANSWERING_CONF             'm'
#define HOST_MIC_STATE                  'o'
#define HOST_PAIRING                    'p'
#define HOST_QUERY_DEVICE_NAME          'q'
#define HOST_SYSTEM_RESET               'r'
#define HOST_VOLUME_CONTROL             's'
#define HOST_REDIALING                  's'
#define HOST_AUDIO_TRANSFER             't'
#define HOST_SET_PINCODE                'u'
#define HOST_VOICE_DIAL                 'v'
#define HOST_CALL_WAIT_CONTROL          'w'
#define HOST_ACTIVE_DEVICE              'y'
#define HOST_BYPASS_IPOD_CMD            'l'
#define HOST_STREAMING_CONTROL          'n'
#define HOST_CONNECT_STEREO             'x'
#define HOST_DISCONNECT_STEREO          'x'
#define HOST_QUERY_CONF_SMS             'g'

int hsm30_init(void);
int hsm30_write(BT_PACKET *packet);
BT_PACKET *hsm30_read(void);

#endif
